﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class StartButtonBehavior : MonoBehaviour
{
    public Camera Main_Camera;
    public Camera VR_Camera;
    private Button Start_Button;

    // Start is called before the first frame update
    void Start()
    {
        VR_Camera.enabled = false;
        Main_Camera.enabled = true;
        Start_Button = GetComponent<Button>();
        Start_Button.onClick.AddListener(On_Start_Item_Clicked);
    }

    void On_Start_Item_Clicked()
    {
        Debug.Log("点击开始按钮");
        VR_Camera.enabled = true;
        Main_Camera.enabled = false;
    }
}
